/**
 * 数值的扩展
 * 二进制0B 八进制0O
 * Number.isFinite(),Number.isNaN()
 * Number.parseInt(),Number.parseFloat()
 * Number.isInteger()
 * 0.1+0.2===0.3??
 * Math新增方法
 */

 
// console.log(Number.isFinite(5));
// console.log(Number.isFinite(0.5));
// console.log(Number.isFinite(Infinity));//false
// console.log(Number.isFinite(false));//false
// console.log(Number.isFinite('weqe'));//false


// NaN
// console.log(Number.isNaN(NaN));
// console.log(Number.parseInt(5.5));
// console.log(Number.parseFloat(5.5));

// console.log(Number.isFinite(5));
// console.log(Number.isInteger(9.5));

// console.log(0.10000000000000001===0.1);//true


// console.log(Number.MAX_SAFE_INTEGER);
// console.log(Number.MIN_SAFE_INTEGER);

// console.log(Math.trunc(5.5));
// console.log(Math.trunc(-5.5));
// console.log(Math.trunc(true));
// console.log(Math.trunc('as'));//NaN
// console.log(Math.trunc(NaN));//nan
// console.log(Number.parseInt(5.5));
// console.log(Number.parseInt(-5.5));
// console.log(Number.parseInt(true));//NaN


 console.log(Math.sign(5));//1
 console.log(Math.sign(-5));//-1
 console.log(Math.sign(0));//0
 console.log(Math.sign(NaN));//NaN



